<template>
  <div class="nav">
    {{name}}
  </div>
</template>

<script>
export default {
  mounted() {
    console.log(this.$store.state.name)
    document.title = this.name
  },
  computed:{
    name(){
      return this.$store.state.name
    }
  }
}
</script>

<style>
.nav{
  height: 50px;
  background-color: #c20c0c;
  line-height: 50px;
  text-align: center;
  color: #fff;
}
</style>